package com.cn.wanxi.model;

import java.util.List;

public class PageModel<T> {
    private Integer page;//当前页数
    private Integer size;//展示条数
    private String sort;//排序
    private String param;//模糊查询
    private List<T> list;//取出的数据集合
    private long total;//集合条数

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getParam() {
        return param;
    }

    public void setParam(String param) {
        this.param = param;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    @Override
    public String toString() {
        return "PageModel{" +
                "page=" + page +
                ", size=" + size +
                ", sort='" + sort + '\'' +
                ", param='" + param + '\'' +
                ", list=" + list +
                ", total=" + total +
                '}';
    }
}
